home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / gpt32src.zip / MAKEFILE.AMI < prev    next >
Text File  |  1992-03-25  |  3KB  |  126 lines

  1. #
  2. # $Id: makefile.ami,v 3.26 92/03/24 22:36:54 woo Exp Locker: woo $
  3. #
  4. #
  5. #   Makefile for the Amiga             Pat R. Empleo
  6. #                                      Sept 1991
  7. #      Manx Aztec C 5.2 beta version
  8. #
  9. #   Usage:
  10. #
  11. #      make -f makefile.ami
  12. #
  13. #
  14.  
  15. # where to install help file gnuplot.gih
  16. HELPDEST=GNUPLOT:docs/gnuplot.gih
  17. # Where to send email about bugs and comments (locally)
  18. EMAIL="bug-gnuplot@ames.arc.nasa.gov"
  19.  
  20. #
  21. # Manx Aztec C v5.2 compiler options
  22. #
  23. # -DVFORK  We use this switch to invoke fexecv()
  24. #
  25. CC     = cc
  26. CFLAGS = -DVFORK -DNOGAMMA -DMEMSET -DMEMCPY -DAMIGA_AC_5 -fa -sab -wosw -MR
  27.  
  28. #
  29. # Manx Aztec C v5.2 linker options
  30. #
  31. LD   = ln
  32. LIBS = -lma -lc
  33.  
  34. #
  35. # Terminal (device) support --- see term.h
  36. #
  37. TERMFLAGS = -Iterm
  38.  
  39. #
  40. # List of object files except term.o, version.o
  41. #
  42. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  43.        internal.o misc.o parse.o plot.o scanner.o \
  44.        setshow.o standard.o util.o  
  45.  
  46. #
  47. # List of sources
  48. #
  49. CSOURCE1 = command.c setshow.c 
  50. CSOURCE2 = help.c graphics.c graph3d.c internal.c 
  51. CSOURCE3 = misc.c eval.c parse.c plot.c readline.c scanner.c standard.c 
  52. CSOURCE4 = bitmap.c term.c util.c version.c
  53. CSOURCE5 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
  54.     term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
  55.     term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  56.     term/apollo.trm term/gpr.trm
  57. CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  58.     term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm 
  59. CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  60.     term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  61.     term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gnuplot_x11.c
  62. CSOURCE8 = contour.c
  63.  
  64. #
  65. # Docs
  66. #
  67. DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  68.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  69.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entry.sty \
  70.     docs/titlepage.ms docs/titlepage.tex
  71. DOCS2 = docs/gnuplot.doc
  72. DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
  73.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  74.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  75.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  76.     docs/latextut/linepoint.plt
  77.  
  78. #
  79. # Targets
  80. #
  81.  
  82. default: gnuplot doc
  83.  
  84. gnuplot: $(OBJS) term.o version.o
  85.     $(LD) $(OBJS) term.o version.o $(LIBS) -o gnuplot
  86.  
  87. doc:
  88.     cd docs
  89.     make -f makefile.ami gih
  90.  
  91. #
  92. # Dependencies
  93. #
  94. plot.o: plot.c
  95.     $(CC) $(CFLAGS) plot.c
  96.  
  97. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  98.     $(CC) $(CFLAGS) $(TERMFLAGS) term.c
  99.  
  100. version.o:
  101.     $(CC) $(CFLAGS) -DCONTACT=$(EMAIL) version.c
  102.  
  103. $(OBJS): plot.h
  104.     $(CC) $(CFLAGS) $*.c
  105.  
  106. command.o:
  107.     $(CC) $(CFLAGS) -c command.c -DHELPFILE="$(HELPDEST)"
  108.  
  109. command.o help.o misc.o: help.h
  110.  
  111. command.o graphics.o graph3d.o misc.o plot.o setshow.o term.o: setshow.h
  112.  
  113. bitmap.o term.o: bitmap.h
  114.  
  115. #
  116. # misc
  117. #
  118. clean:
  119.     delete #?.o
  120.  
  121. veryclean: spotless
  122.  
  123. spotless:
  124.     delete #?.o gnuplot
  125.  
  126.